From: Marina Zhurakhinskaya Date: Fri, 24 Jul 2009 16:58:53 +0000 (-0400) Subject: Return false from the timeout callback function X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11192 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=978ab8a4dd4bfadddbec264519f4d2eaa09aff18;p=gnome-shell.git Return false from the timeout callback function Timeout callback function should not be rescheduled again with the same timeout because we compute a new timeout and schedule it again instead. So the callback function needs to return false to not be scheduled again by default. --- diff --git a/js/ui/docDisplay.js b/js/ui/docDisplay.js index c507e67b5..3027936d9 100644 --- a/js/ui/docDisplay.js +++ b/js/ui/docDisplay.js @@ -224,7 +224,7 @@ DocDisplay.prototype = { docDisplayItem.redisplay(currentSecs); this._updateTimeoutCallback(docDisplayItem, currentSecs); } - return true; + return false; }, // Updates the timeout callback if the timeout time for the docDisplayItem